package com.foreknow.demo10;

public class TestStudent {
    public static void main(String[] args) {
        Student student = new Student(23,"foreknow");
        student.setName("tom");//调用Student对象中的setName方法给name属性设置一个值
        String name = student.getName();
        System.out.println(name);
        System.out.println(student.getAge());
        System.out.println(student.getSchool());

    }
}